﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw
{
    public abstract class FileDevice : StorageDevice
    {
        public void drawToBuffer(List<CommonShape> shapes)
        {
            foreach (var s in shapes)
            {
                s.StorageDevice = this;
            }
            foreach (var shape in shapes)
            {
                shape.DrawToDevice();
            }
            //b.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
        }
        public abstract void saveToFile(string fileName, string fileExtension);
    }
}
